package fr.curriculumvitae.anthony.stephan.fragments;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

public class WhoAmIDetailsFragment extends Fragment {
	
	private static final String EXTRA_LAYOUT_FRAGMENT = "extra.layout.fragment";
	
	public static Fragment newInstance(int layoutID) {
		WhoAmIDetailsFragment f = new WhoAmIDetailsFragment();
	    Bundle bundle = new Bundle(2);
	    bundle.putInt(EXTRA_LAYOUT_FRAGMENT, layoutID);
	    f.setArguments(bundle);
		return f;
	}

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
		ViewGroup root = (ViewGroup) inflater.inflate(getArguments().getInt(EXTRA_LAYOUT_FRAGMENT), null);
		return root;
	}
	
 	@Override
	public void onViewCreated(View view, Bundle savedInstanceState) {
 		/* nothing to do */
	}

}
